package com.example.teachingSystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teachingSystem.pojo.entity.CourseSchedule;
import com.example.teachingSystem.pojo.form.Schedule.AddScheduleForm;
import com.example.teachingSystem.pojo.form.Schedule.SchedulePageQuery;
import com.example.teachingSystem.pojo.form.Schedule.UpdateScheduleForm;
import com.example.teachingSystem.pojo.vo.ScheduleVo;
import com.example.teachingSystem.utils.result.PageResult;
import com.example.teachingSystem.utils.result.Result;

import java.util.List;

/**
* @author 86147
* @description 针对表【course_schedule(课程安排表)】的数据库操作Service
* @createDate 2023-12-11 22:55:52
*/
public interface CourseScheduleService extends IService<CourseSchedule> {
    Result<String> addSchedule(AddScheduleForm addScheduleForm);

    Result<String> updateSchedule(UpdateScheduleForm updateScheduleForm);

    Result<String> deleteScheduleById(Long id);

    Result<List<ScheduleVo>> getMyCourseScheduleByStu(Long semester);

    Result<List<ScheduleVo>> getMyCourseScheduleByTea(Long semester);

    PageResult<ScheduleVo> getAllCourseSchedule(SchedulePageQuery schedulePageQuery);
}
